import UndoTest from './undoTest.js'

/**
 * 运行悔棋功能测试
 */
export function runUndoTests() {
  console.log('🚀 开始运行悔棋功能测试...')
  
  const undoTest = new UndoTest()
  undoTest.runAllTests()
}

// 如果在浏览器环境中，将测试函数挂载到全局
if (typeof window !== 'undefined') {
  window.runUndoTests = runUndoTests
}

// 如果在微信小程序环境中，将测试函数挂载到全局
if (typeof GameGlobal !== 'undefined') {
  GameGlobal.runUndoTests = runUndoTests
} 